import request from '@/utils/request'

// 查询积分抽奖中奖记录列表
export function listLotteryUserRecord(query) {
  return request({
    url: '/business/lotteryUserRecord/list',
    method: 'get',
    params: query
  })
}

// 查询积分抽奖中奖记录详细
export function getLotteryUserRecord(id) {
  return request({
    url: '/business/lotteryUserRecord/' + id,
    method: 'get'
  })
}

// 新增积分抽奖中奖记录
export function addLotteryUserRecord(data) {
  return request({
    url: '/business/lotteryUserRecord',
    method: 'post',
    data: data
  })
}

// 修改积分抽奖中奖记录
export function updateLotteryUserRecord(data) {
  return request({
    url: '/business/lotteryUserRecord',
    method: 'put',
    data: data
  })
}

// 删除积分抽奖中奖记录
export function delLotteryUserRecord(id) {
  return request({
    url: '/business/lotteryUserRecord/' + id,
    method: 'delete'
  })
}
